Integrand size = 25, antiderivative size = 37 \[ \int \frac {\sqrt {a+a \sin (e+f x)}}{\sqrt {\sin (e+f x)}} \, dx=-\frac {2 \sqrt {a} \arcsin \left (\frac {\sqrt {a} \cos (e+f x)}{\sqrt {a+a \sin (e+f x)}}\right )}{f} \]
[Out]
Time = 0.05 (sec) , antiderivative size = 37, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 2, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.080, Rules used = {2853, 222} \[ \int \frac {\sqrt {a+a \sin (e+f x)}}{\sqrt {\sin (e+f x)}} \, dx=-\frac {2 \sqrt {a} \arcsin \left (\frac {\sqrt {a} \cos (e+f x)}{\sqrt {a \sin (e+f x)+a}}\right )}{f} \]
[In]
[Out]
Rule 222
Rule 2853
Rubi steps \begin{align*} \text {integral}& = -\frac {2 \text {Subst}\left (\int \frac {1}{\sqrt {1-\frac {x^2}{a}}} \, dx,x,\frac {a \cos (e+f x)}{\sqrt {a+a \sin (e+f x)}}\right )}{f} \\ & = -\frac {2 \sqrt {a} \arcsin \left (\frac {\sqrt {a} \cos (e+f x)}{\sqrt {a+a \sin (e+f x)}}\right )}{f} \\ \end{align*}
Result contains complex when optimal does not.
Time = 0.73 (sec) , antiderivative size = 164, normalized size of antiderivative = 4.43 \[ \int \frac {\sqrt {a+a \sin (e+f x)}}{\sqrt {\sin (e+f x)}} \, dx=\frac {(1+i) e^{\frac {1}{2} i (e+f x)} \sqrt {-i e^{-i (e+f x)} \left (-1+e^{2 i (e+f x)}\right )} \left (\arctan \left (\sqrt {-1+e^{2 i (e+f x)}}\right )-i \text {arctanh}\left (\frac {e^{i (e+f x)}}{\sqrt {-1+e^{2 i (e+f x)}}}\right )\right ) \sqrt {a (1+\sin (e+f x))}}{\sqrt {2} \sqrt {-1+e^{2 i (e+f x)}} f \left (\cos \left (\frac {1}{2} (e+f x)\right )+\sin \left (\frac {1}{2} (e+f x)\right )\right )} \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. \(274\) vs. \(2(31)=62\).
Time = 5.82 (sec) , antiderivative size = 275, normalized size of antiderivative = 7.43
method | result | size |
default | \(\frac {\sqrt {-\cot \left (f x +e \right )+\csc \left (f x +e \right )}\, \sqrt {a \left (\sin \left (f x +e \right )+1\right )}\, \left (\sqrt {\sin }\left (f x +e \right )\right ) \left (\ln \left (-\frac {\csc \left (f x +e \right )-\cot \left (f x +e \right )+\sqrt {-\cot \left (f x +e \right )+\csc \left (f x +e \right )}\, \sqrt {2}+1}{\sqrt {-\cot \left (f x +e \right )+\csc \left (f x +e \right )}\, \sqrt {2}-\csc \left (f x +e \right )+\cot \left (f x +e \right )-1}\right )+4 \arctan \left (\sqrt {-\cot \left (f x +e \right )+\csc \left (f x +e \right )}\, \sqrt {2}+1\right )+4 \arctan \left (\sqrt {-\cot \left (f x +e \right )+\csc \left (f x +e \right )}\, \sqrt {2}-1\right )+\ln \left (-\frac {\sqrt {-\cot \left (f x +e \right )+\csc \left (f x +e \right )}\, \sqrt {2}-\csc \left (f x +e \right )+\cot \left (f x +e \right )-1}{\csc \left (f x +e \right )-\cot \left (f x +e \right )+\sqrt {-\cot \left (f x +e \right )+\csc \left (f x +e \right )}\, \sqrt {2}+1}\right )\right ) \sqrt {2}}{2 f \left (-\cos \left (f x +e \right )+1+\sin \left (f x +e \right )\right )}\) | \(275\) |
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 91 vs. \(2 (31) = 62\).
Time = 0.39 (sec) , antiderivative size = 330, normalized size of antiderivative = 8.92 \[ \int \frac {\sqrt {a+a \sin (e+f x)}}{\sqrt {\sin (e+f x)}} \, dx=\left [\frac {\sqrt {-a} \log \left (\frac {128 \, a \cos \left (f x + e\right )^{5} - 128 \, a \cos \left (f x + e\right )^{4} - 416 \, a \cos \left (f x + e\right )^{3} + 128 \, a \cos \left (f x + e\right )^{2} - 8 \, {\left (16 \, \cos \left (f x + e\right )^{4} - 24 \, \cos \left (f x + e\right )^{3} - 66 \, \cos \left (f x + e\right )^{2} + {\left (16 \, \cos \left (f x + e\right )^{3} + 40 \, \cos \left (f x + e\right )^{2} - 26 \, \cos \left (f x + e\right ) - 51\right )} \sin \left (f x + e\right ) + 25 \, \cos \left (f x + e\right ) + 51\right )} \sqrt {a \sin \left (f x + e\right ) + a} \sqrt {-a} \sqrt {\sin \left (f x + e\right )} + 289 \, a \cos \left (f x + e\right ) + {\left (128 \, a \cos \left (f x + e\right )^{4} + 256 \, a \cos \left (f x + e\right )^{3} - 160 \, a \cos \left (f x + e\right )^{2} - 288 \, a \cos \left (f x + e\right ) + a\right )} \sin \left (f x + e\right ) + a}{\cos \left (f x + e\right ) + \sin \left (f x + e\right ) + 1}\right )}{4 \, f}, \frac {\sqrt {a} \arctan \left (\frac {{\left (8 \, \cos \left (f x + e\right )^{2} + 8 \, \sin \left (f x + e\right ) - 9\right )} \sqrt {a \sin \left (f x + e\right ) + a} \sqrt {a} \sqrt {\sin \left (f x + e\right )}}{4 \, {\left (2 \, a \cos \left (f x + e\right )^{3} + a \cos \left (f x + e\right ) \sin \left (f x + e\right ) - 2 \, a \cos \left (f x + e\right )\right )}}\right )}{2 \, f}\right ] \]
[In]
[Out]
\[ \int \frac {\sqrt {a+a \sin (e+f x)}}{\sqrt {\sin (e+f x)}} \, dx=\int \frac {\sqrt {a \left (\sin {\left (e + f x \right )} + 1\right )}}{\sqrt {\sin {\left (e + f x \right )}}}\, dx \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 210 vs. \(2 (31) = 62\).
Time = 0.31 (sec) , antiderivative size = 210, normalized size of antiderivative = 5.68 \[ \int \frac {\sqrt {a+a \sin (e+f x)}}{\sqrt {\sin (e+f x)}} \, dx=-\frac {2 \, \sqrt {2} \sqrt {a} \left (\frac {\sin \left (f x + e\right )}{\cos \left (f x + e\right ) + 1}\right )^{\frac {3}{2}} - 3 \, \sqrt {2} {\left (\sqrt {2} \arctan \left (\frac {1}{2} \, \sqrt {2} {\left (\sqrt {2} + 2 \, \sqrt {\frac {\sin \left (f x + e\right )}{\cos \left (f x + e\right ) + 1}}\right )}\right ) + \sqrt {2} \arctan \left (-\frac {1}{2} \, \sqrt {2} {\left (\sqrt {2} - 2 \, \sqrt {\frac {\sin \left (f x + e\right )}{\cos \left (f x + e\right ) + 1}}\right )}\right )\right )} \sqrt {a} + 6 \, \sqrt {2} \sqrt {a} \sqrt {\frac {\sin \left (f x + e\right )}{\cos \left (f x + e\right ) + 1}} - \frac {2 \, {\left (\frac {3 \, \sqrt {2} \sqrt {a} \sin \left (f x + e\right )}{\cos \left (f x + e\right ) + 1} + \frac {\sqrt {2} \sqrt {a} \sin \left (f x + e\right )^{2}}{{\left (\cos \left (f x + e\right ) + 1\right )}^{2}}\right )}}{\sqrt {\frac {\sin \left (f x + e\right )}{\cos \left (f x + e\right ) + 1}}}}{3 \, f} \]
[In]
[Out]
\[ \int \frac {\sqrt {a+a \sin (e+f x)}}{\sqrt {\sin (e+f x)}} \, dx=\int { \frac {\sqrt {a \sin \left (f x + e\right ) + a}}{\sqrt {\sin \left (f x + e\right )}} \,d x } \]
[In]
[Out]
Timed out. \[ \int \frac {\sqrt {a+a \sin (e+f x)}}{\sqrt {\sin (e+f x)}} \, dx=\int \frac {\sqrt {a+a\,\sin \left (e+f\,x\right )}}{\sqrt {\sin \left (e+f\,x\right )}} \,d x \]
[In]
[Out]